let obj1 ={
    a:1,
    b:2
}
let obj2 ={
    b:3,
    c:4
}
let newObj ={...obj1,...obj2}
console.log(newObj);